const { defineConfig } = require('@vue/cli-service');
const path = require('path');
const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');

module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave:false,
    configureWebpack: {
        plugins: [
          ComponentsPlugin({
            resolvers: [VantResolver()],
          }),
        ],
      },
    // chainWebpack: config => {
    //     config.resolve.alias.set('@src', path.resolve(__dirname, 'src'));
    // },
    // pluginOptions: {
    //     'style-resources-loader': {
    //         preProcessor: 'less',
    //         patterns: [path.resolve(__dirname, 'src/assets/less/mixins.less')],
    //     },
    // },
});